import request from '@/utils/request'

// 查询MailDailySummary列表
export function listDailysummary(query) {
  return request({
    url: '/mail/dailysummary/list',
    method: 'get',
    params: query
  })
}

// 查询MailDailySummary详细
export function getDailysummary(id) {
  return request({
    url: '/mail/dailysummary/' + id,
    method: 'get'
  })
}

// 新增MailDailySummary
export function addDailysummary(data) {
  return request({
    url: '/mail/dailysummary',
    method: 'post',
    data: data
  })
}

// 修改MailDailySummary
export function updateDailysummary(data) {
  return request({
    url: '/mail/dailysummary',
    method: 'put',
    data: data
  })
}

// 删除MailDailySummary
export function delDailysummary(id) {
  return request({
    url: '/mail/dailysummary/' + id,
    method: 'delete'
  })
}

// 导出MailDailySummary
export function exportDailysummary(query) {
  return request({
    url: '/mail/dailysummary/export',
    method: 'get',
    params: query
  })
}